package lifeDomain;

import java.util.Calendar;


public class LSpot extends Spot
{
    public LSpot()
    {
        gps = -1;
        wifi = -1;
        lat = -1;
        lon = -1;
        accuracy = 0;
        speed = 0;
        type = LSPOT;
        overlapped = 0;
    }
    public LSpot(Spot spot)
    {
        gps = spot.gps;
        wifi = spot.wifi;
        lat = spot.lat;
        lon = spot.lon;
        accuracy = spot.accuracy;
        speed = spot.speed;
        type = LSPOT;
        overlapped = 0;
        time = spot.time;
        tin = spot.time;
    }
    public int compareTo(LSpot spot)
    {
    	if(((Spot)this).compareTo(spot) != 0)
    	{	
    		return 1;
    	}
    	if(overlapped != spot.overlapped || (tin.compareTo(spot.tin) !=0)
    			|| (tout.compareTo(spot.tout) != 0))
    		return 1;
    	return 0;
    	
    }
    protected int overlapped;
    protected Calendar tin;
    protected Calendar tout;
}
